#include "GameEntity.h"
#include "config.h"

GameEntity::GameEntity(b2World * pW)
: pWorld(pW)
{
}

GameEntity::~GameEntity()
{
  destroyBody();
}

b2Body * GameEntity::getBody()
{
  return m_pB2Body;
}

void GameEntity::contactBeganWithPlayer(Player * pPlayer, b2Contact * pContact)
{
}

void GameEntity::contactEndWithPlayer(Player * pPlayer, b2Contact * pContact)
{
}

void GameEntity::destroyBody()
{
  if (m_pB2Body)
    pWorld->DestroyBody(m_pB2Body);
}

